<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<div class="botMargin">
      		<h1>Login</h1>
</div>
         
          <div class="loginSection" >
          <c:if test="${not empty param.login_error}">
      <div class="errors">
        <p>
          <spring:message code="security_login_unsuccessful" />
          <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
          .
        </p>
      </div>
    </c:if>
    <c:if test="${empty param.login_error}">
      <p>
        <spring:message code="security_login_message" />
      </p>
    </c:if>
    <spring:url value="/resources/j_spring_security_check" var="form_url" />
    
          <form name="f" action="${fn:escapeXml(form_url)}" method="POST">
          	<table>
            	<tr>
                	<td>
                    	<label for="j_username">
          					<spring:message code="security_login_form_name" />
        				</label>
        				<input id="j_username" type='text' name='j_username' style="width:150px" />
                    </td>
                </tr>
                <tr>
                	<td>
                	<label for="j_password">
			          <spring:message code="security_login_form_password" />
			        </label>
			        <input id="j_password" type='password' name='j_password' style="width:150px" />
                    </td>
                </tr>
                <tr>
                	<td>&nbsp;</td>
                </tr>
                <tr>
                  <td align="center">
                  	<input type="submit" value="Login" />
                    <input type="reset" value="Cancel" />
                  </td>
                </tr>
            </table>
            </form>
          </div>
